<div class="user-r-title clearfix">
    <div class="common-title f-l">
        <a href="javascript:void(0)" class="field">{$data.page_title}</a>
    </div>
</div>
<div class="user-r-content clearfix j-ajax-page">
    <div class="search clearfix" ms-important="vm-search">
        <div class="search-list">
            <span>机构编号</span>
            <input type="text" ms-duplex="@search_data.login_name" placeholder="">
        </div>
        <a href="javascript:void(0)" class="btn btn-primary btn-circle" ms-click="search">搜索</a>
    </div>
    <div class="ajax-block">
        <table class="uc-table">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>{$bm_two}名称</th>
                    <th>期初保证金</th>
                    <th>当前盈亏留存</th>
                    <th>当前保证金</th>
                    <th>可提现保证金</th>
                    <th>所属{$bm_one}编号</th>
                </tr>
            </thead>
            <tbody>
            	{if $data.type eq 1}
	                <tr>
	                    <td>{$data.list.login_name}</td>
	                    <td>{$data.list.nick_name}</td>
	                    <td>{$data.list.promoter_deposit}</td>
	                    <td>{$data.list.gain}</td>
	                    <td>{$data.list.coin}</td>
	                    <td>{$data.list.refund_coin}</td>
	                    <td>{$data.list.bm_login_name}</td>
	                </tr>
				{else}
					 {foreach from="$data.list" item="l_item" }
	                <tr>
	                    <td>{$l_item.login_name}</td>
	                    <td>{$l_item.nick_name}</td>
	                    <td>{$l_item.promoter_deposit}</td>
	                    <td>{$l_item.gain}</td>
	                    <td>{$l_item.coin}</td>
	                    <td>{$l_item.refund_coin}</td>
	                    <td>{$l_item.bm_login_name}</td>
	                </tr>
	                {/foreach}
				{/if}
				{if $data.list}
                <tr class="form-body form-total">
                    <td class="content-font"></td>
                    <td class="content-font">合计</td>
                    <td class="content-font">{$data.total.total_promoter_deposit}</td>
                    <td class="content-font">{$data.total.total_gain}</td>
                    <td class="content-font">{$data.total.total_coin}</td>
                    <td class="content-font">{$data.total.total_refund_coin}</td>
                    <td class="content-font"></td>
                </tr>
                {/if}
               
            </tbody>
        </table>
        <div class="m-page clearfix">
            <div class="m-page-con">
                {$data.page}
            </div>
        </div>
    </div>
</div>
